<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			
			var  target = ' 42342 aa 54334 cc 345 bb 3 cc  def 67 234234 88 斯蒂芬森 99 ';
			
			//找出里面所有的数字  并且 长度是2个或者3个?
			//543 34 67 88 99
			
			//var re=/\s\d{2,3}\s/g;
			var re=/\s[a-z]{2,3}\s/g;
			
			
			var jgs = target.match(re);
			console.log(jgs.length);
			for(var index =0; index<jgs.length;index++){
				console.log(jgs[index]);
			}
			
		</script>
	</body>
</html>
